package net.zoneland.knowledge.exceptions;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 任务共享编辑异常.
 * @author cxz
 * @Date 2023/4/6 11:15
 */
public class WorkSharedEditingException extends RuntimeException {

    private static final long serialVersionUID = 2036790575500579745L;

    /**
     * 日志.
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(WorkSharedEditingException.class);

    /**
     * 异常前缀.
     */
    private static final String EXCEPTION_PREFIX = "任务共享编辑异常:";

    public WorkSharedEditingException(final String message) {
        super(EXCEPTION_PREFIX + message);
    }

    public WorkSharedEditingException(final String message, final Throwable cause) {
        super(EXCEPTION_PREFIX + message, cause);
        LOGGER.error(message);
    }
}
